import { _decorator } from 'cc';
import { DIRECTION_ENUM, ENTITY_STATE_ENUM, ENTITY_TYPE_ENUM, EVENT_ENUM, PLAYER_DEAD_TYPE } from '../../Enum';
import { TILE_WEIGHT, TILE_HEIGHT } from '../Tile/TileItem';
import { EntiyManager } from '../../common/EnityManager';
import {IronSkeletonStateMachine } from './IronSkeletonStateMachine';
import { EventManager } from '../../RunTime/EventManager';
import { DataManager } from '../../RunTime/DataManager';
import { EnemyManager } from '../../common/EnemyManager';
import { IEntity } from '../../Levels';
const { ccclass, property } = _decorator;


@ccclass('IronSkeletonManager')
export class IronSkeletonManager extends EnemyManager {

  id: number
  // 移动使用
  targetX: number = 0
  targetY: number = 0

  async init(param: IEntity){
    this.fsm = this.addComponent(IronSkeletonStateMachine)
    await this.fsm.init()
    super.init(param)


  }




}
